<?php
/* wwwschool project

Copyright (C) 2009  Phillip Aldridge
Email : info@imi21.com
Web site http://www.imi21.com

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
*/

/**
 *  Template file
 *  File : null.php
 *  This will  all disappear soon, when the menus become dynamic
 */  

 include WS3_TEMPLATE."header.php";
 ?>
 
<div id="top"><div id="logo"><h1>wwwschool</h1><p>Logo</p></div>
<div id="toptoolbar">
<div id="userstatus"><?php echo $_mUSER[$session->userType()] ?> <?php echo $session->userName() ?> : <a href="javascript:void(0)" onclick='ajaxList("list=Messages")'><?php echo _mMESSAGES ?></a> <span id="messageCounter">()</span> | <a href="javascript:void(0)" onclick='ajaxEdit("f=Profile&amp;id=<?php echo $session->userID() ?>")'><?php echo _mPROFILE ?></a> | <a href="kill.php"><?php echo _mLOGOUT ?></a></div>
<div id="messages">Feedback from server</div>
<div id="topmenu">
<ul>
<li><?php echo _mCALENDAR ?></li>
<li><?php echo _mTRACKING ?></li>
</ul>
</div>
</div>
</div>
<div id ="lefttoolbar">

<?php
if ($session->userType()<3) {?>
<h2>Manage Users</h2>
<ul>
<?php
if ($session->userType()==1) {?><li><a href="javascript:void(0)" onclick='ajaxList("list=Users&amp;type=2")'><?php echo $_mUSERS[2] ?></a></li>
<?php } ?>
<li><a href="javascript:void(0)" onclick='ajaxList("list=Users&amp;type=3")'><?php echo $_mUSERS[3] ?></a></li>
<li><a href="javascript:void(0)" onclick='ajaxList("list=Users&amp;type=4")'><?php echo $_mUSERS[4] ?></a></li>
<li><a href="javascript:void(0)" onclick='ajaxList("list=Users&amp;type=5")'><?php echo $_mUSERS[5] ?></a></li>
</ul>
<?php } ?>
<?php
if ($session->userType()< 4 ) {
// for all but the students
?>
<h2>Manage Content</h2>
<ul>
<li><a href="javascript:void(0)" onclick='ajaxList("list=Themes")'>Themes</a></li>
<li><a href="javascript:void(0)" onclick='ajaxList("list=Courses")'>Courses</a></li>
<li><a href="javascript:void(0)" onclick='ajaxList("list=Modules")'>Modules</a></li>
</ul>
<?php } ?>

<?php
if ($session->userType()== 4 ) {
// for the students
?>
<h2>Manage Course</h2>
<ul>
<li><a href="javascript:void(0)" onclick='ajaxList("list=StudentCourses")'><?php echo _mCOURSES ?></a></li>
<li><a href="javascript:void(0)" onclick='ajaxList("list=StudentHistory")'><?php echo _mHISTORY ?></a></li>
<li><a href="javascript:void(0)" onclick='ajaxList("list=StudentScoring")'><?php echo _mSCORING ?></a></li>
</ul>
<?php } ?>

</div>
<div id ="main">
<p>Main content</p>
</div>

<?php include WS3_TEMPLATE."footer.php"; ?>

